package com.earthchen.demo.service;

import com.baomidou.mybatisplus.service.IService;
import com.earthchen.demo.domain.SysRole;

/**
 * @author earthchen
 * @date 2018/9/4
 **/
public interface SysRoleService extends IService<SysRole> {

    /**
     * 授权资源给角色
     *
     * @param roleId
     * @param resourceId
     * @return
     */
    boolean authorityRoleResource(Long roleId, Long resourceId);

    /**
     * 删除对应的角色的授权资源
     *
     * @param roleId
     * @param resourceId
     */
    void deleteAuthorityRoleResource(Long roleId, Long resourceId);
}
